package com.swyc.osschat.Common.Constant;

public class Constant {
    /**
     * 删除
     */
    public static final int DELETED = 0;

    /**
     * 未删除
     */
    public static final int UNDELETE = 1;

    /**
     * 真
     */
    public static final int TRUE = 1;

    /**
     * 假
     */
    public static final int FALSE = 0;

    /**
     * 空字符串
     */
    public static final String STRING_EMPTY = "";

    public static final String SYS_USER_IN_SESSION = "SYS_USER_IN_SESSION";

    /**
     * 盐
     */
    public static final String SALT = "swyc";

    /**
     * 角色类型 -> 菜单
     */
    public static final Integer PERMISSION_TYPE_MENU = 1;

    /**
     * 角色类型 -> 按钮
     */
    public static final Integer PERMISSION_TYPE_BUTTON = 2;

    public static final String USER_DEFAULT_HEAD_IMG = "/static/imgs/user.jpg";

    /**
     * 消息 系统发给用户
     */
    public static final Integer SYS_TO_MEMBER = 1;

    /**
     * 消息 用户发给系统
     */
    public static final Integer MEMBER_TO_SYS = 2;

    /**
     * 消息 用户发给用户
     */
    public static final Integer MEMBER_TO_MEMBER = 3;

    /**
     * 消息 系统发给系统
     */
    public static final Integer SYS_TO_SYS = 4;

    public static final String ONLINE = "online";
    public static final String OFFLINE = "offline";

    public static final Integer SYS_USER = 1;
    public static final Integer MEMBER = 2;

    public static final String DEFAULT_PASSWORD = "123456";
    public static final String HEAD_IMG_URL = "/static/imgs/user.jpg";

    /**
     * UTF-8 编码
     */
    public static final String UTF_ENCODING = "UTF-8";
    /**
     * 接口访问成功code
     */
    public static final Integer SUCCESS_CODE = 200;

    /**
     * 超级管理员role
     */
    public static final String ADMIN = "admin";

    /**
     * 聊天code分割符
     */
    public static final String CHAT_DIVISION_SYMBOL = "-";

    /**
     * sql查询like百分号
     */
    public static final String PER_CENT = "%";

    /**
     * 读取主配置文件的从配置文件
     */
    public static final String EVN = "spring.profiles.active";

    /**
     * application文件名
     */
    public static final String APPLICATION = "application";

    /**
     * 当前页码
     */
    public static final String PAGE = "page";
    /**
     * 每页显示记录数
     */
    public static final String LIMIT = "limit";
    /**
     * 排序字段
     */
    public static final String ORDER_FIELD = "sidx";
    /**
     * 排序方式
     */
    public static final String ORDER = "order";
    /**
     *  升序
     */
    public static final String ASC = "asc";
}
